package com.pojo;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @author mornd
 * @date 2020/11/12 - 14:01
 */
@Data
//admin 密码 admin 其他 000
public class SysUser {
    private Integer id;
    private String userName;
    private String password;
    private String realName;
    private Integer sex;
    private Integer deptId;
    private Integer status;
    private String email;
    private String phone;
    private Integer userType; //1为管理员 2为普通用户
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date hireDate;
    private Integer createdBy;
    private String createdByStr;//创建人
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createDate;
    private Integer modifyBy;
    private String modifyByStr;//修改人
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date modifyDate;
    private String remark;
    //部门
    private Department department;
    //用户角色列表
    private List<SysRole> roleList;
}
